package lihua.robot.controller;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

import lihua.robot.common.Result;
import lihua.robot.pojo.CrmWarehouse;
import lihua.robot.service.CrmWarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping(value="/crmwarehouse")
@DS("slave_2")
public class CrmWarehouseController {

    @Autowired
    private static CrmWarehouseService crmWarehouseService;



    /**
     * 大桶满桶
     * @return
     */
    @GetMapping("/queryFullBucketCapacity")
    public  String queryFullBucketCapacity(int i, int deSvn){
        return   crmWarehouseService.queryFullBucketCapacity(i,deSvn);
    }

    /**
     * 大桶满桶位数量
     * @return
     */
    @GetMapping("/queryFullBucketCapacityCount")
    public  Integer queryFullBucketCapacityCount(){
        return   crmWarehouseService.queryFullBucketCapacityCount();

    }

    /**
     * 大桶空桶
     * @return
     */
    @GetMapping("/queryEmptyBucketCapacity")
    public  String queryEmptyBucketCapacity(int i,int deSvn){
        return crmWarehouseService.queryEmptyBucketCapacity(i,deSvn);
    }

    /**
     * 大桶空桶数量
     * @return
     */
    @GetMapping("/queryEmptyBucketCapacityCount")
    public  Integer queryEmptyBucketCapacityCount(){
        return crmWarehouseService.queryEmptyBucketCapacityCount();
    }

    /**
     * 小桶满桶
     * @return
     */
    @GetMapping("/queryXFullBucketCapacity")
    public  String queryXFullBucketCapacity(int i,int deSvn){
        return crmWarehouseService.queryXFullBucketCapacity( i,deSvn);
    }

    /**
     * 小桶满桶位数量
     * @return
     */
    @GetMapping("/queryXFullBucketCapacityCount")
    public  Integer queryXFullBucketCapacityCount(){
        return crmWarehouseService.queryXFullBucketCapacityCount();
    }

    /**
     * 小桶空桶
     * @return
     */
    @GetMapping("/queryXEmptyBucketCapacity")
    public  String queryXEmptyBucketCapacity(int i){
        return crmWarehouseService.queryXEmptyBucketCapacity( i);
    }



    /**
     * 小桶空桶数量
     * @return
     */
    @GetMapping("/queryXEmptyBucketCapacityCount")
    public  Integer queryXEmptyBucketCapacityCount(){
        return crmWarehouseService.queryXEmptyBucketCapacityCount();
    }

}
